package chat.serverToClientMessage;

import chat.client.Client;

/**
 * Text Message sent by the Server
 * @author Marius Eichenberg
 * 
 */
public class TextToClientMessage implements ServerToClientMessage{

	private static final long serialVersionUID = 1L;
	private String text;
	
	
	public TextToClientMessage(String text) {
		this.text = text;
	}

	
	public String getText() {
		return text;
	}
	
	
	@Override
	public void processOnClient(Client client) {
		client.printMessage(this);	
	}

}
